﻿using Ayatta.Contract;
using System.Web.Mvc;
using Web.Base.ActionFilters;

namespace Web.Help.Controllers
{
    public class HomeController : Controller
    {
        private readonly IBaseService baseService;

        public HomeController(IBaseService baseService)
        {
            this.baseService = baseService;
        }

        public ActionResult Index()
        {
            return View();
        }
        [ETag("help/question-{param}.html")]
        //[Static(60, "help/question-{param}.html")]
        public ActionResult Question(int param)
        {
            var model = baseService.GetFaq(param);
            return View(model);
        }
    }
}
